<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'fp'">分配角色</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">用户名：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="用户名"
							ng-model="param.data.username" ng-readonly="param.type=='fp'"
							ng-pattern="/^[a-zA-Z]{1}[0-9a-zA-Z_]{5,22}$/" required />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">所属角色：</label>
					<div class="col-sm-7">
						<ui-select multiple ng-model="multiSelected.rolelist"
							theme="bootstrap"> <ui-select-match
							placeholder="选择角色...">{{$item.name}}</ui-select-match> <ui-select-choices
							group-by="someGroupFn"
							repeat="role in rolelist | propsFilter: {id: $select.search, name: $select.search}">
						<span ng-bind-html="role.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
				</div>
				<footer class="panel-footer text-right bg-light lter">
					<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
					<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
				</footer>
			</div>
	</form>
</div>